package cn.com.git.admin.service.dto;

import cn.com.git.common.base.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
  * SysNoteDict save dto
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/18
*/
@Data
public class SysNoteDictSaveDTO extends BaseDTO {

    @ApiModelProperty(value = "主表单")
    @NotNull(message = "表单不能为空")
    private List<SysNoteDict> m;

    @Data
    public static class SysNoteDict {
        @ApiModelProperty(value = "主键")
        private Integer id;
        @ApiModelProperty(value = "字典项")
        private String item;
        @ApiModelProperty(value = "值")
        private Integer value;
        @ApiModelProperty(value = "文本")
        private String label;
        @ApiModelProperty(value = "描述")
        private String memo;
        @ApiModelProperty(value = "父级项")
        private String pItem;
    }

}